#include "StdAfx.h"
#include "WMPPlug.h"
#include "..\WMP\Common.h"
#include "WMPUtils.h"

#pragma unmanaged

WMPPlug::WMPPlug() {
	this->wmpWindow = NULL;
}

HWND WMPPlug::getWMPlayerWindow() {
	HWND hWnd = this->wmpWindow;
	if (!hWnd) {
		hWnd = FindApplicationWindow(_T("WMPlayerApp"), 0);
		this->wmpWindow = hWnd;
	}
	return hWnd;
}
